package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.mapper.AssetOutStorageMapper;
import com.group.eams.pojo.dto.AssetOutStorageDetailQueryDto;
import com.group.eams.pojo.dto.AssetOutStorageQueryDto;
import com.group.eams.pojo.entity.AssetOutStorage;
import com.group.eams.pojo.vo.AssetOutStorageDetailListVo;
import com.group.eams.pojo.vo.AssetOutStorageListVo;
import com.group.eams.service.AssetOutStorageService;
import org.springframework.stereotype.Service;

/**
* @author 恩哲欣
* @description 针对表【asset_out_storage(资产出库表)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class AssetOutStorageServiceImpl extends ServiceImpl<AssetOutStorageMapper, AssetOutStorage>
implements AssetOutStorageService {

    @Override
    public Page<AssetOutStorageListVo> findAssetOutStorageList(Page<AssetOutStorage> page, AssetOutStorageQueryDto assetOutStorageQueryDto) {
        return getBaseMapper().assetOutStorageList(page, assetOutStorageQueryDto);
    }

    @Override
    public Page<AssetOutStorageDetailListVo> findAssetOutStorageDetailList(Page<AssetOutStorage> page, AssetOutStorageDetailQueryDto assetOutStorageDetailQueryDto) {
        return getBaseMapper().assetOutStorageDetailList(page, assetOutStorageDetailQueryDto);
    }


    @Override
    public AssetOutStorage findByApplicationNum(String applicationNum) {
        return getBaseMapper().findByApplicationNum(applicationNum);
    }

    @Override
    public int deleteByApplicationNum(String applicationNum) {
        return getBaseMapper().deleteByApplicationNum(applicationNum);
    }
}
